package com.fone.player.client;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;


/**
 * @author 刘昆  (liukun@100tv.com)
 * @since  2014-04-22
 */

@Root(strict=false)
public class LoginspaceRst extends Rst {
	
	/**
	 * @author user
	 *
	 */
	@Root(strict = false)
	public static class Binds {
		
		@ElementList(inline=true, entry="bind", required=false)
	    public List<Bind> bindList;

		@Override
		public String toString() {
			return "Binds [bindList=" + bindList + "]";
		} 
	}
	
	@Root(strict = false)
	public static class Users{
		@ElementList(inline=true, entry="user", required=false)
	    public List<User> userList; 
	}
	@Root(strict = false)
	public static class User{
		@Attribute (required=false)
		public String userid;
		
		@Attribute (required=false)
		public String pwd;

		@Override
		public String toString() {
			return "User [userid=" + userid + ", pwd=" + pwd + "]";
		}

	}
	@Root(strict = false)
	public static class Bind {
		
		@Attribute (required=false)
		public String sid;

		@Attribute (required=false)
		public String fp;		

		@Attribute (required=false)
		public String access_token;
		
		@Attribute (required=false)
		public String expiresIn;
		
		@Attribute (required=false)
		public String expirestime;

		@Override
		public String toString() {
			return "Bind [sid=" + sid + ", fp=" + fp + ", access_token="
					+ access_token + ", expiresIn=" + expiresIn
					+ ", expirestime=" + expirestime + "]";
		}

	}
	
	@Element (required=false)
	public String host;
	
	@Element (required=false)
	public String shost;

	
	@Element (required=false)
	public String seqid;
	
	@Element (required=false)
	public String type;
	
	@Element (required=false)
	public String isflag;
	
	@Element (required=false)
	public String feeurl;
	
	@Element (required=false)
	public String displayid;
	
	@Element (required=false)
	public String userid;
	
	@Element (required=false)
	public String state;
	
	@Element (required=false)
	public String viptype;
	
	@Element (required=false)
	public String expirestime;
	
	@Element (required=false)
	public String vipexpirestime;
	
	@Element (required=false)
	public String vb;
	
	@Element (required=false)
	public String facepicurl;
	
	@Element (required=false)
	public String nickname;
	
	@Element (required=false)
	public String gender;
	
	@Element (required=false)
	public String pwd;
	
	@Element (required=false)
	public Binds binds;
	
	@Element (required=false)
	public Users users;

	@Override
	public String toString() {
		return "LoginspaceRst [host=" + host + ", shost=" + shost + ", seqid="
				+ seqid + ", type=" + type + ", isflag=" + isflag + ", feeurl="
				+ feeurl + ", userid=" + userid + ", state=" + state
				+ ", viptype=" + viptype + ", expirestime=" + expirestime
				+ ", vipexpirestime=" + vipexpirestime + ", vb=" + vb
				+ ", facepicurl=" + facepicurl + ", nickname=" + nickname
				+ ", gender=" + gender + ", pwd=" + pwd + ", binds=" + binds
				+ ", users=" + users + "]";
	}




}
